package com.car.shopping.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 董旭
 * @since 2024-08-28
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("product_review")
public class ProductReview implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("goods_id")
    private Integer goodsId;

    @TableField("user_id")
    private Integer userId;

    @TableField("user_phone")
    private String userPhone;

    @TableField("rating")
    private Integer rating;

    @TableField("comment")
    private String comment;

    @TableField("created_time")
    private LocalDateTime createdTime;

    @TableField("admin_id")
    private Integer adminId;

    @TableField("parent_id")
    private Integer parentId;


}
